package org.abettor.util;

/**
 * ClassLoader适配器，用以将能够从串行化数据生成Java类的<i>defineClass</i>方法暴露出来
 * @author <a href="http://www.abettor.org/" target="_blank">abettor</a>
 * @deprecated
 */
public class ClassLoaderAdapter extends ClassLoader
{
	/**
	 * @see java.lang.ClassLoader#ClassLoader(ClassLoader)
	 */
	public ClassLoaderAdapter(ClassLoader parent)
	{
		super(parent);
	}

	/**
	 * @see java.lang.ClassLoader#defineClass(String, byte[], int, int)
	 */
	public Class<?> assembleClass(String name, byte[] data, int off, int len)
	{
		return defineClass(name, data, off, len);
	}
}
